<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<title th:text="${title}">title</title>
</head>

<body>
	<h1 th:text="${title}">description</h1>
	<form method="post" enctype="multipart/form-data">
		<input type="text" name="filename" /><br /> <input type="file"
			name="file" /><br /> <input type="button" id="sub" value="提交" />
	</form>
	<button id="shishi">试试</button>
</body>
<script th:src="@{/static/js/jquery-1.8.1.min.js}"></script>
<script type="text/javascript">
	$(function() {
		$("#shishi").click(function() {
			alert("1232323232");
		});
		/* $("#sub").click(function() {
			$.ajax({
				url : "${pageContext.request.contextPath}/public/testupload",
				type : "post",
				data : form,
				processData : false,
				contentType : false,
				success : function(data) {
					window.clearInterval(timer);
					console.log("over..");
				},
				error : function(e) {
					alert("错误！！");
					window.clearInterval(timer);
				}
			});
			get();//此处为上传文件的进度条 */
		});
	});
</script>
</html>